<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cad-entradas-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Os campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'cod_forma'); ?>
                <?php echo $form->dropDownList($model,'cod_forma', cad_forma::loadTableForma()); ?>
		<?php echo $form->error($model,'cod_forma'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cod_aluno'); ?>
                <?php echo $form->dropDownList($model,'cod_aluno',array($cod_aluno=>$nome)); ?>           
		<?php echo $form->error($model,'cod_aluno'); ?>

	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cod_custo'); ?>
		<?php echo $form->dropDownList($model,'cod_custo', cad_custo::loadTableCusto()); ?>
		<?php echo $form->error($model,'cod_custo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'baixa'); ?>
		<?php  echo $form->dropDownList($model,'baixa',Lookup::items('Baixa')); ?>
		<?php echo $form->error($model,'baixa'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome'); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div> 
        
	<div class="row">
		<?php echo $form->labelEx($model,'parcelas'); ?>
		<?php echo $form->textField($model,'parcelas',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'parcelas'); ?>
	</div>        
        
	<div class="row">
		<?php echo $form->labelEx($model,'valor'); ?>
		<?php echo $form->textField($model,'valor',array('value'=>$valor,'size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'valor'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->